import request from '@/utils/request'

// 查询订单数
export function ordCount(query) {
  return request({
    url: '/tea/count/ordct',
    method: 'get',
    params: query
  })
}

// 查询茶叶数
export function leafCount(query) {
  return request({
    url: '/tea/count/leafct',
    method: 'get',
    params: query
  })
}
// 查询今日订单数和金额
export function dayCount(query) {
  return request({
    url: '/tea/count/dayct',
    method: 'get',
    params: query
  })
}
// 查询昨日订单数
export function yesCount(query) {
  return request({
    url: '/tea/count/yesct',
    method: 'get',
    params: query
  })
}
// 查询一周订单数
export function weekCount(query) {
  return request({
    url: '/tea/count/weekct',
    method: 'get',
    params: query
  })
}
// 查询一月订单数
export function monthCount(query) {
  return request({
    url: '/tea/count/monthct',
    method: 'get',
    params: query
  })
}
//查询茶叶库存
export function teaCount(query) {
  return request({
    url: '/tea/count/store',
    method: 'get',
    params: query
  })
}